home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15608 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.0 KB  |  65 lines

  1. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  2. Path: ntcs-ip8.uchicago.edu!user
  3. From: j-jahnke@uchicago.edu (Jerome Jahnke)
  4. Subject: Re: Young programmers read me.
  5. X-Nntp-Posting-Host: ntcs-ip8.uchicago.edu
  6. Message-ID: <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu>
  7. Sender: news@midway.uchicago.edu (News Administrator)
  8. Organization: BSD Academic Computing
  9. X-Newsreader: Yet Another NewsWatcher 2.2.0b4
  10. References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com>
  11. Date: Sat, 6 Apr 1996 06:16:16 GMT
  12.  
  13. In article <3165AD94.6F3A@datalytics.com>, Rob Stewart
  14. <stew@datalytics.com> wrote:
  15.  
  16. > Aidan Cully wrote:
  17. > >    I also think that speed is essential for most commercial applications,
  18. > > and this alone is what makes C/C++ a widely used Commercial application,
  19. > > but I get upset when people confuse "popular" with "good."  I'm writing a
  20. > > game in C++ right now because the speed is so good, but just as a
  21. > > programming language, it really blows.
  22. > There are idioms and patterns for most things you want to do 
  23. > with C++ that alleviate much of what bothers you about the 
  24. > language and that reduce errors and performance problems.  You 
  25. > simply have to do a little reading and research to learn about 
  26. > them.
  27.  
  28. I have to second this, but in reality, the issue should never be
  29. languages, bad programmers write bad code regardless of the language. I
  30. would not have like to learn to program if C had been the only language
  31. (well this not exactly true as I learned assembler first, for the 6502
  32. yeesh.) But C++ is a nice mix of features and bare silicon access. And is
  33. a nice language to work with, there are quite a few things I would like to
  34. see it do, but then we all have our own quirks don't we.
  35.  
  36. C++ also by default enforces a lot of good habits about OO Programming,
  37. unfortunately it enforces some bad ones too. But hey, you can't have it
  38. all now can you?
  39.  
  40. > You may not like the symbols used in C++, but I like the code 
  41. > compression they provide.  Typing '{' is much faster than typing 
  42. > 'BEGIN.'  Readability is subjective; Greek is not readable until 
  43. > you know the language.
  44.  
  45. I have to disagree here, C and C++ rely quite a bit on style. I personally
  46. can't read some styles on C and C++ the guys that put the starting brace
  47. on the same line as a conditional or a loop drive me batty and I need to
  48. use CDent to change the code just so I can read it. This coupled with the
  49. rampant use of preprocessor macros makes life tough for folks reading
  50. code.
  51.  
  52. And if you think about it, it is a lot easier to find a BEGIN and END in a
  53. chunk of code than a { and }. They are just bigger and easier to spot.
  54. Which is why many code editors color the code so you can find things like
  55. braces and what nots.
  56.  
  57. Jer
  58.  
  59. -- 
  60. Jerome Jahnke
  61. BSD Academic Computing
  62. University of Chicago
  63. j-jahnke@uchicago.edu
  64.